package com.nsi.o2o.web.frontend;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author: Luo Zhen
 * @date: 2018/9/30 15:20
 * @description: 前端主页
 */
@Controller
@RequestMapping("/frontend")
public class FrontendController {

    /**
     * 首页
     *
     * @return
     */
    @RequestMapping(value = "/index", method = RequestMethod.GET)
    public String index() {
        return "frontend/index";
    }

    /**
     * 商品列表页
     *
     * @return
     */
    @RequestMapping(value = "/shoplist", method = RequestMethod.GET)
    public String showShopList() {
        return "frontend/shoplist";
    }

    /**
     * 商品列表详情页
     *
     * @return
     */
    @RequestMapping(value = "/shopdetail", method = RequestMethod.GET)
    public String showShopDetail() {
        return "frontend/shopdetail";
    }

    /**
     * 商品列表商品详情的 详情页
     *
     * @return
     */
    @RequestMapping(value = "/productdetail", method = RequestMethod.GET)
    public String showProductDetail() {
        return "frontend/productdetail";
    }
}
